package model.interactionhandler;

import java.util.Iterator;
import java.util.List;

import model.entity.Talkable;

/**
 * this class is used by the view for talking interactions
 * @author Vincent
 *
 */
public class TalkHandler extends InteractionHandler implements Iterable<String>{
	
	protected List<String> dialog;
	protected static Iterator<String> it;

	public TalkHandler(String theName, Talkable talker) {
		super(theName);
		dialog = talker.getDialog();
	}
	
	/*
	public String getNextSentence(Talkable talker){
		if( !isdialogLoaded() ){
			loadDialog();
		}
		if( hasNextSentence ){
			return getNextSentence();
		}
	}
	*/
	
	@Override
	public Iterator<String> iterator() {
		return dialog.iterator();
	}
}